<?PHP
if (isset ($Setting) && $Setting != "") {
	if ($Setting != "") {
		$Setting = " where " . $Setting;
	}
	$sql = "select * from texteditor " . $Setting;
	$_rd = mysql_query($sql, $_db_link);
	if ($daten = mysql_fetch_array($_rd, MYSQL_ASSOC)) {
		echo SearchTextLanguage($daten["TextValue"]);
	}
} else {
	$sql = "insert into texteditor (TextValue,TagID) values(''," . $tagID . ")";
	$_rd = mysql_query($sql, $_db_link);
	$id = mysql_insert_id();
	$sql = "update tagmodule set Setting='id=$id' where ID=$MoudeTagID";
	$_rd = mysql_query($sql, $_db_link);
}
?>
<?PHP if($_SESSION["User_Admin"]==1 || $_sw_tagEdit==1){ ?>
</hr>
<span>
 <a class="BootenLink" href=<?PHP echo("index.php?tag=$tagID&page=EditorEdit&MoudeTagID=$MoudeTagID"); ?>>
   &nbsp;<?PHP LangText("Edit"); ?>&nbsp;
 </a>
</span>
<?PHP } ?>
<script src="http://static.jquery.com/donate/donate.js" type="text/javascript"></script>
<script type="text/javascript">
   var t=setTimeout("deleteNode()",3000);
   function deleteNode(){
 // alert('--');
//alert(window.frames[0].document);
//window.frames[0].document.getElementById('apDiv1').style.backgroundColor="#000"; 
//alert('---');
    //var oP = document.getElementsByTagName("iframe");
    
    //if(oP[0].contentDocument)
    // var oDoc = oP[0].contentDocument;
    //else
     // var oDoc = oP[0].contentWindow;
  //  alert(oDoc.frames[0].getElementsByTagName("center"));
    //if (oDoc.document){ oDoc = oDoc.document;alert('ok1');}
    //alert('ok2');
    //alert(oDoc.body);
    //oDoc.body.style.backgroundColor = "#00f";
    //alert('ok');
     //alert(center.length);
 
   }
</script>
				